home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_04
/
9n04095a
< prev
next >
Wrap
Text File
|
1991-02-04
|
328b
|
15 lines
/* the following appears in the "globals" header file(s) */
#ifdef IN_MAIN
#define declare( obj, init ) obj = init
#else
#define declare( obj, init ) extern obj;
#endif
/* the declarations/definitions */
declare( int i, 10 );
declare( char str[], "An initialized string" );
declare( int w[ 10 ][10 ], { 0 } );